/*
* Copyright (c) 2015, 2017 Qualcomm Innovation Center, Inc.
* All Rights Reserved.
* Confidential and Proprietary - Qualcomm Innovation Center, Inc.
*
*/

/*
 * 2015 Qualcomm Atheros, Inc.
 * All Rights Reserved.
 * Qualcomm Atheros Confidential and Proprietary.
 */
/* contains sample keys in hex format */
const unsigned char test_target_wlan_x509[] = {
  0x30, 0x82, 0x05, 0xa2, 0x30, 0x82, 0x03, 0x8a, 0xa0, 0x03, 0x02, 0x01,
  0x02, 0x02, 0x09, 0x00, 0xaa, 0x19, 0xdc, 0x72, 0xfd, 0x7f, 0xf0, 0x61,
  0x30, 0x0d, 0x06, 0x09, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01,
  0x05, 0x05, 0x00, 0x30, 0x60, 0x31, 0x12, 0x30, 0x10, 0x06, 0x03, 0x55,
  0x04, 0x0a, 0x0c, 0x09, 0x4d, 0x61, 0x67, 0x72, 0x61, 0x74, 0x68, 0x65,
  0x61, 0x31, 0x1c, 0x30, 0x1a, 0x06, 0x03, 0x55, 0x04, 0x03, 0x0c, 0x13,
  0x47, 0x6c, 0x61, 0x63, 0x69, 0x65, 0x72, 0x20, 0x73, 0x69, 0x67, 0x6e,
  0x69, 0x6e, 0x67, 0x20, 0x6b, 0x65, 0x79, 0x31, 0x2c, 0x30, 0x2a, 0x06,
  0x09, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x09, 0x01, 0x16, 0x1d,
  0x73, 0x6c, 0x61, 0x72, 0x74, 0x69, 0x62, 0x61, 0x72, 0x74, 0x66, 0x61,
  0x73, 0x74, 0x40, 0x6d, 0x61, 0x67, 0x72, 0x61, 0x74, 0x68, 0x65, 0x61,
  0x2e, 0x68, 0x32, 0x67, 0x32, 0x30, 0x20, 0x17, 0x0d, 0x31, 0x34, 0x30,
  0x38, 0x31, 0x33, 0x31, 0x32, 0x30, 0x34, 0x33, 0x39, 0x5a, 0x18, 0x0f,
  0x32, 0x31, 0x31, 0x34, 0x30, 0x37, 0x32, 0x30, 0x31, 0x32, 0x30, 0x34,
  0x33, 0x39, 0x5a, 0x30, 0x60, 0x31, 0x12, 0x30, 0x10, 0x06, 0x03, 0x55,
  0x04, 0x0a, 0x0c, 0x09, 0x4d, 0x61, 0x67, 0x72, 0x61, 0x74, 0x68, 0x65,
  0x61, 0x31, 0x1c, 0x30, 0x1a, 0x06, 0x03, 0x55, 0x04, 0x03, 0x0c, 0x13,
  0x47, 0x6c, 0x61, 0x63, 0x69, 0x65, 0x72, 0x20, 0x73, 0x69, 0x67, 0x6e,
  0x69, 0x6e, 0x67, 0x20, 0x6b, 0x65, 0x79, 0x31, 0x2c, 0x30, 0x2a, 0x06,
  0x09, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x09, 0x01, 0x16, 0x1d,
  0x73, 0x6c, 0x61, 0x72, 0x74, 0x69, 0x62, 0x61, 0x72, 0x74, 0x66, 0x61,
  0x73, 0x74, 0x40, 0x6d, 0x61, 0x67, 0x72, 0x61, 0x74, 0x68, 0x65, 0x61,
  0x2e, 0x68, 0x32, 0x67, 0x32, 0x30, 0x82, 0x02, 0x22, 0x30, 0x0d, 0x06,
  0x09, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x01, 0x05, 0x00,
  0x03, 0x82, 0x02, 0x0f, 0x00, 0x30, 0x82, 0x02, 0x0a, 0x02, 0x82, 0x02,
  0x01, 0x00, 0xd4, 0xfe, 0xc2, 0x51, 0x6d, 0xd6, 0x4c, 0xd3, 0xb3, 0x6c,
  0xa3, 0x29, 0x58, 0x44, 0x11, 0x3f, 0x58, 0x6b, 0x65, 0xb0, 0xf4, 0xdb,
  0x60, 0xe5, 0x3a, 0x3a, 0x31, 0x58, 0xb5, 0x2b, 0x5f, 0x20, 0x64, 0x55,
  0xe8, 0x29, 0x55, 0x0f, 0xa0, 0x66, 0xa6, 0x02, 0x63, 0x40, 0x72, 0xd5,
  0x35, 0xa9,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x5e, 0x37, 0xd4, 0x34, 0xab, 0x45, 0xbe, 0x41, 0x89, 0xba,
  0x6d, 0x15, 0xba, 0x26, 0xfd, 0xbf, 0x59, 0x28, 0x94, 0x2d, 0xb2, 0x55,
  0xcf, 0x46, 0x60, 0x5c, 0xe6, 0x20, 0x30, 0xee, 0x45, 0xae, 0x81, 0x86,
  0x14, 0xd9, 0x83, 0x85, 0x3e, 0x32, 0x53, 0xe3, 0xf8, 0x70, 0xb1, 0xb7,
  0xf0, 0x5d, 0xc2, 0x71, 0xae, 0x7b, 0x7e, 0x48, 0x6c, 0x0d, 0x7c, 0x83,
  0x27, 0xea, 0xc5, 0xc7, 0xca, 0x7a, 0x51, 0xd8, 0x2d, 0x55, 0x5b, 0x68,
  0xa9, 0xca, 0x6f, 0xbb, 0x45, 0x05, 0x61, 0x57, 0xf7, 0x89, 0xa0, 0xd9,
  0xcc, 0xbd, 0x81, 0x6b, 0xde, 0xf4, 0x47, 0xad, 0x00, 0xc0, 0x43, 0xe1,
  0x97, 0xc2, 0xc2, 0xbb, 0x0b, 0x88, 0x07, 0x39, 0x8e, 0x86, 0x28, 0x84,
  0xcb, 0xdc, 0x64, 0x5b, 0x08, 0xc8, 0xad, 0x55, 0xb6, 0x02, 0xa7, 0xa7,
  0xa7, 0x01, 0x7d, 0xc0, 0xca, 0xdb, 0x56, 0xf7, 0x73, 0xc9, 0xc8, 0xf2,
  0x33, 0xe9, 0xd6, 0xf1, 0x47, 0xcc, 0xd3, 0x45, 0xdb, 0x6d, 0x05, 0x31,
  0xe6, 0x81, 0x85, 0x9c, 0x46, 0x47, 0x87, 0x57, 0x1e, 0x97, 0xae, 0x72,
  0x6d, 0xb7, 0x9b, 0x6b, 0x8b, 0xa0, 0x90, 0xdc, 0x47, 0x20, 0xd4, 0x1b,
  0x20, 0xb9, 0x0c, 0x8e, 0x9d, 0x31, 0xce, 0xca, 0xe6, 0x24, 0x2d, 0xcb,
  0x6d, 0x54, 0xbe, 0xab, 0x1e, 0xaa, 0xbf, 0x95, 0xa8, 0x55, 0xca, 0x32,
  0x53, 0xe2, 0x02, 0xbd, 0x43, 0x98, 0x04, 0xef, 0x62, 0x0f, 0xe9, 0x0f,
  0x37, 0xbb, 0xdd, 0x8c, 0x08, 0x5f, 0xab, 0x04, 0x8d, 0x12, 0x48, 0x16,
  0xd4, 0x20, 0xee, 0x5a, 0xf3, 0xfb, 0x7d, 0x52, 0x1d, 0x48, 0xcf, 0x2c,
  0x25, 0xa8, 0x4d, 0xd3, 0x80, 0x92, 0x8e, 0x21, 0xe9, 0x9b, 0xfe, 0x58,
  0x15, 0x61, 0xa8, 0xd0, 0x9e, 0x51, 0xe2, 0xa9, 0x7d, 0xc2, 0x7c, 0x8c,
  0x4b, 0xf0, 0x3a, 0x6d, 0xcd, 0xa3, 0xc0, 0xba, 0xbb, 0x01, 0x5c, 0x7f,
  0x36, 0x91, 0x7f, 0x4a, 0x63, 0xe6, 0x83, 0xaf, 0x61, 0x04, 0xc0, 0x66,
  0xa7, 0xef, 0xbc, 0xa7, 0xbe, 0x68, 0x39, 0x80, 0xd6, 0xad, 0x02, 0x03,
  0x01, 0x00, 0x01, 0xa3, 0x5d, 0x30, 0x5b, 0x30, 0x0c, 0x06, 0x03, 0x55,
  0x1d, 0x13, 0x01, 0x01, 0xff, 0x04, 0x02, 0x30, 0x00, 0x30, 0x0b, 0x06,
  0x03, 0x55, 0x1d, 0x0f, 0x04, 0x04, 0x03, 0x02, 0x07, 0x80, 0x30, 0x1d,
  0x06, 0x03, 0x55, 0x1d, 0x0e, 0x04, 0x16, 0x04, 0x14, 0x56, 0x47, 0xf1,
  0xdb, 0xd8, 0xf7, 0x0c, 0xe0, 0xd1, 0x74, 0xfd, 0x2c, 0x62, 0x86, 0x9d,
  0x6e, 0xb9, 0xb4, 0x97, 0x48, 0x30, 0x1f, 0x06, 0x03, 0x55, 0x1d, 0x23,
  0x04, 0x18, 0x30, 0x16, 0x80, 0x14, 0x56, 0x47, 0xf1, 0xdb, 0xd8, 0xf7,
  0x0c, 0xe0, 0xd1, 0x74, 0xfd, 0x2c, 0x62, 0x86, 0x9d, 0x6e, 0xb9, 0xb4,
  0x97, 0x48, 0x30, 0x0d, 0x06, 0x09, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d,
  0x01, 0x01, 0x05, 0x05, 0x00, 0x03, 0x82, 0x02, 0x01, 0x00, 0x11, 0x45,
  0xf2, 0x16, 0x31, 0xb0, 0xac, 0x53, 0x01, 0x2f, 0x8b, 0xac, 0x33, 0xd2,
  0xed, 0x5b, 0x4b, 0x0f, 0x62, 0x09, 0xcf, 0xbc, 0x9a, 0xf0, 0x6a, 0x58,
  0xc0, 0x4d, 0x55, 0x68, 0x3b, 0x2e, 0x66, 0x27, 0x24, 0xab, 0x14, 0xd6,
  0x7c, 0x4c, 0x1b, 0x24, 0x7e, 0x43, 0x96, 0x74, 0xb8, 0x65, 0x8f, 0x25,
  0x90, 0x32, 0xb8, 0xfd, 0xc9, 0x99, 0x5b, 0x15, 0xaf, 0x77, 0x02, 0x46,
  0x3b, 0xb6, 0x0d, 0xfa, 0xcb, 0x8b, 0xb7, 0xaa, 0x9d, 0x31, 0x16, 0xc4,
  0xfb, 0xfe, 0x44, 0xbe, 0xd5, 0x58, 0xe0, 0x11, 0x6c, 0x37, 0x54, 0x0d,
  0xd7, 0xb9, 0x95, 0x3d, 0x1f, 0xf9, 0x7b, 0x81, 0xfa, 0xf1, 0xd8, 0x19,
  0x7a, 0xff, 0x29, 0xa5, 0xac, 0x69, 0xe3, 0xae, 0x86, 0x15, 0x5a, 0x86,
  0xd4, 0xb6, 0xf7, 0x09, 0x5d, 0x8c, 0xf3, 0x39, 0x88, 0xc6, 0xa7, 0x39,
  0x37, 0xc9, 0xb2, 0x30, 0x5b, 0x11, 0xb6, 0xf1, 0x92, 0xcb, 0x88, 0x82,
  0x70, 0x0e, 0x0a, 0x5e, 0x11, 0x83, 0xec, 0xab, 0x09, 0x39, 0xf6, 0x6c,
  0x42, 0x52, 0x39, 0xa9, 0x58, 0xa6, 0x2e, 0x58, 0x32, 0x95, 0x0e, 0x13,
  0x89, 0x9d, 0x48, 0x3c, 0x1f, 0xfa, 0x6b, 0xaa, 0x59, 0x6d, 0xd6, 0xac,
  0x53, 0x56, 0xb0, 0x25, 0x72, 0x9d, 0xf0, 0x38, 0xb1, 0x96, 0x67, 0x0a,
  0xdb, 0x36, 0x34, 0x90, 0x3f, 0x6a, 0x18, 0xa1, 0x96, 0xbc, 0xfa, 0x72,
  0x9c, 0x49, 0x6a, 0xbb, 0x9d, 0xe9, 0xc3, 0xcf, 0xdb, 0x56, 0xb8, 0x46,
  0x15, 0x35, 0x9d, 0x6a, 0x2a, 0x07, 0xf2, 0xfa, 0x58, 0xc3, 0x4f, 0x52,
  0x74, 0x1c, 0xe4, 0x92, 0xaa, 0x26, 0x40, 0xac, 0xaa, 0xe8, 0x50, 0x77,
  0xdc, 0x07, 0x82, 0x59, 0x6e, 0xd8, 0xc9, 0x21, 0xaa, 0x95, 0x00, 0xf8,
  0x6a, 0xc0, 0x9e, 0x88, 0xb1, 0xa4, 0x26, 0xba, 0xef, 0x52, 0x9d, 0x17,
  0x33, 0x0b, 0xde, 0x1a, 0xa8, 0x9c, 0xe5, 0x72, 0x57, 0xd2, 0xad, 0x23,
  0xae, 0x75, 0x30, 0x65, 0xf5, 0xcb, 0xb6, 0xdf, 0x24, 0x3a, 0xb2, 0x3b,
  0xa7, 0xe2, 0x64, 0xcf, 0x65, 0x06, 0x4b, 0xfa, 0x77, 0xa3, 0xc8, 0x16,
  0x73, 0x25, 0x32, 0x8a, 0x96, 0x50, 0x35, 0x65, 0x43, 0x27, 0x06, 0x56,
  0x45, 0xbd, 0x20, 0xc9, 0xaf, 0x98, 0x20, 0x78, 0xb0, 0xca, 0x47, 0x93,
  0x1f, 0x82, 0x0b, 0x77, 0xaa, 0x85, 0xf7, 0x9b, 0xa3, 0xb8, 0xb7, 0xc3,
  0x57, 0xa1, 0x5d, 0x0c, 0x5c, 0x36, 0x32, 0xd4, 0x19, 0x4f, 0x98, 0xa6,
  0x34, 0x72, 0xe7, 0xb3, 0xdb, 0xd4, 0xed, 0xc9, 0x98, 0x44, 0x71, 0x97,
  0xc4, 0x94, 0x46, 0x9e, 0xdd, 0x64, 0x8a, 0x79, 0xee, 0x90, 0x5b, 0xbb,
  0xc3, 0xc7, 0xde, 0x20, 0xb6, 0x78, 0x66, 0xae, 0xd5, 0x98, 0x5c, 0x20,
  0x9c, 0x75, 0xfe, 0x1a, 0xd4, 0x50, 0xd0, 0x8b, 0x3b, 0xee, 0x55, 0x0c,
  0x17, 0xf8, 0x4c, 0x00, 0x47, 0x33, 0x59, 0xcf, 0x97, 0x13, 0x29, 0x7e,
  0xb9, 0xbd, 0x86, 0x01, 0x82, 0x94, 0x26, 0x05, 0x96, 0x32, 0xf0, 0xf3,
  0x03, 0xf7, 0x2c, 0x1f, 0xcd, 0x64, 0x83, 0xcf, 0xc0, 0xa9, 0x7b, 0xcb,
  0x34, 0x3c, 0x72, 0x88, 0xec, 0x81, 0x96, 0x30, 0x6c, 0x3a, 0xf0, 0xe2,
  0x09, 0x7a, 0x49, 0x2d, 0x58, 0x50, 0x9b, 0x1e, 0xc0, 0x26, 0xc4, 0x3f,
  0xd1, 0x78, 0x71, 0x9e, 0x2c, 0x50, 0x29, 0x82, 0x28, 0x86, 0x32, 0xe5,
  0x55, 0x48, 0x4d, 0xf4, 0x45, 0x72, 0x70, 0x3e, 0x0c, 0x6e, 0xd3, 0x13,
  0x82, 0xdb, 0x11, 0xa6, 0x0c, 0x29, 0x84, 0xe0, 0xe5, 0x01, 0x43, 0xc4,
  0xe8, 0x48, 0x18, 0x96, 0x2c, 0x69, 0xe9, 0x1c, 0xea, 0xcc, 0xf1, 0x32,
  0xca, 0x68, 0xf5, 0x8a, 0x34, 0x12, 0x5f, 0xdc, 0x2f, 0xe3, 0xa0, 0xb8,
  0x11, 0x8b, 0x18, 0x9e, 0x48, 0x42
};
const unsigned int test_target_wlan_x509_len = 1446;

struct cert {
    const unsigned int cert_len;
    const unsigned char *cert;
};
struct cert fw_test_certs[4] =  {
    {sizeof (test_target_wlan_x509), &test_target_wlan_x509[0]},
    {sizeof (test_target_wlan_x509), &test_target_wlan_x509[0]},
    {sizeof (test_target_wlan_x509), &test_target_wlan_x509[0]},
    {sizeof (test_target_wlan_x509), &test_target_wlan_x509[0]}
};
struct cert fw_prod_certs[4] =  {
    {sizeof (test_target_wlan_x509), &test_target_wlan_x509[0]},
    {sizeof (test_target_wlan_x509), &test_target_wlan_x509[0]},
    {sizeof (test_target_wlan_x509), &test_target_wlan_x509[0]},
    {sizeof (test_target_wlan_x509), &test_target_wlan_x509[0]}
};
